Skip to content

cli.d: callback array of values and option defaults#85

Open
slook wants to merge 1 commit intosoulfind-dev:masterfrom
slook:cli-values-defaults
Open

cli.d: callback array of values and option defaults#85
slook wants to merge 1 commit intosoulfind-dev:masterfrom
slook:cli-values-defaults

Conversation

@slook
Copy link
Copy Markdown
Member

@slook slook commented Apr 1, 2026

Cherry picked from PR #84

  • Added: Support for [optional] choices and accept array of defaults
  • Changed: Callback array of values instead of a concatenated string value
  • Changed: Exception during argument parsing raises exit code 2

This approach eliminates the need for any custom splitting to select log_categories or any other future purpose that requires inputting multiple values. For now all it does is slightly improves the handling of long file names given in the --database path argument and gives more helpful syntax exception messages to identify which part of the input line is faulty.

This PR doesn't add any new options nor functionality.

Co-authored-by: Mat <mail@mathias.is>
@slook slook changed the title cli.d: callback array of values and support defaults cli.d: callback array of values and option defaults Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant